// 驾驶舱
import axios from '@/utils/request';

// 1.指标
export const getPageIndex = (params) => {
  return axios.get('/web/report/sys/roi', {
    params,
  });
};


// 2.API渠道成功率
export const getChannelTop = (params) => {
  return axios.get('/web/report/channel/api/top', {
    params,
  });
};

// 3.渠道监测
export const getPageInfo3 = (params) => {
  return axios.get('/web/report/board/qualification', {
    params,
  });
};

// 4.今日机构情况
export const getPageInfo4 = (params) => {
  return axios.get('/web/report/institution/onLine/situation', {
    params,
  });
};

// 5.在线机构占比
export const getPageInfo5 = (params) => {
  return axios.get('/web/report/board/institution', {
    params,
  });
};

// 6.今日API产品情况
export const getPageInfo6 = (params) => {
  return axios.get('/web/report/api/onLine/situation', {
    params,
  });
};

// 7.API产品排行
export const getApiTop = (params) => {
  return axios.get('/web/report/backend/api/top', {
    params,
  });
};

// 8.线索城市分布Top20
export const getPageInfo8 = (params) => {
  return axios.get('/web/report/city/twenty/top', {
    params,
  });
};

// 渠道ID查询项
export const listtype = (params) => {
  return axios.get('/web/channel/list/type', {
    params,
  });
};